﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class CharacterDirectionBase
{
    private Transform character;

    public Vector3 Forward
    { 
        get
        {
            if(character)
                return character.forward;
            else
                return Vector3.forward;
        }
    }

    public Vector3 Right
    { 
        get
        {
            if(character)
                return character.right;
            else
                return Vector3.right;
        }
    }
    public Vector3 Up
    { 
        get => Vector3.up;
    }

    public CharacterDirectionBase(CharacterController controller)
    {
        character = controller.transform;
    }
}
